Repository navigation
fix(claimant): check terminal markers before timing in poll cap count (#8853) - #8878
Conversation
…#8853) A finished root with a malformed timestamp classified unknown and blocked all launches via cap_room=None. Terminal markers (time.idle / outcome) are decidable without a readable clock; roots with malformed timing and no marker still fail closed.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 55 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Salvage check (queue §8 duplicate protocol): PR #8859 (head ee1a4fd, from triage task 15078) was diffed in full against this merged PR before closing it as the duplicate. Result: nothing unique to salvage. Its poll.py change is the same terminal-marker check at the same point in |
Fixes #8853.
_active_root_statein pm-stack/opencode-claimant/poll.py read_session_timingbefore checking terminal markers, so a finished root with a malformed timestamp (e.g.time={'idle': 123, 'updated': 'bad'}) classified as unknown (None),summarize_capreportedcap_room=None, and all claimant launches stayed blocked.Fix: for a root outside the server's active set (active-set membership is checked first and stays authoritative), a terminal marker —
time.idleon a dicttime, or a top-leveloutcome— now classifies the root inactive before the timing read. A root with malformed timing and NO terminal marker still fails closed as unknown, per the #6868 discipline.Tests (oracle: the acceptance example on issue #8853):
count_active_rootsreturns 0 andsummarize_capgrants room.Queue task 15083 (repo-health-code-pilot), lane any-b. Per the packet scope, the source thread on PR #8692 is left to the pr-comment-review job.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.